import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
      uni(),
  ],
    server: {
        port: 3000,
        host: true,
        open: true,
        proxy: {
            '/api': {
                target: 'http://api.blockhunter.group',
                changeOrigin: true,//是否跨域
                rewrite: (p) => p.replace('/api', '')
            }
        }
    },
    css: {
        preprocessorOptions: {

        },
    },
});
